//对外暴露配置路由(常量路由)
const constantRoutes = [
  {
    //登录页
    path: '/login',
    component: () => import('@/views/login/index.vue'),
    name: 'login'
  },
  {
    //首页
    path: '/',
    component: () => import('@/views/layout/index.vue'),
    children: [],
    name: 'layout'
  },
  {
    //404
    path: '/404',
    component: () => import('@/views/404/index.vue')
  },
  {
    path: '/:pathMatch(.*)',
    redirect: '404',
    name: 'any'
  }
]
export default constantRoutes
